import request from '@/utils/request'
import qs from 'qs'

// 积分规则  jfgz/query
export const jfgzPage = params => {
  return request({
    url: '/jfgz/query',
    method: 'GET',
    params
  })
}

// jfgz/save
export const jfgzSave = params => {
  return request({
    url: '/jfgz/save?' + qs.stringify(params),
    method: 'POST'
  })
}

// 修改 /jfgz/update
export const jfgzUpdate = data => {
  return request({
    url: '/jfgz/update',
    method: 'POST',
    data
  })
}
// 删除 deleteById
export const jfgzDelete = data => {
  return request({
    url: '/jfgz/deleteById?' + qs.stringify(data),
    method: 'POST'
  })
}
